<template>
  <div class="footer">
    <el-container>
      <el-row>
        <el-col :span="4" v-for="nav in nav_list">
          <router-link :to="nav.link">{{nav.name}}</router-link>
        </el-col>
        <el-col :span="24" class="copyright-p">
          <p class="copyright">Copyright © luffycity.com版权所有 | 京ICP备17072161号-1</p>
        </el-col>
      </el-row>
    </el-container>
  </div>
</template>

<script>
  export default {
    name: "Footer",
    data() {
      return {
        nav_list: []
      }
    },
    created() {
      this.$axios.get(this.$settings.Host + '/navfooter/').then(response => {
        this.nav_list = response.data;
      }).catch(error => {
        console.log(error.response)
      });
    },
  }
</script>


<style scoped>
  .footer {
    width: 100%;
    height: 128px;
    background: #25292e;
  }

  .footer .el-container {
    width: auto;
    margin: auto;
    margin-left: 80px;
  }

  .footer .el-row {
    align-items: center;
    padding: 0 200px;
    padding-bottom: 15px;
    width: 100%;
    margin-top: 38px;
  }

  .footer .el-row a {
    color: #fff;
    font-size: 14px;
  }

  .footer .el-row .copyright {
    text-align: center;
    color: #fff;
    font-size: 12px;
  }
  .copyright-p {
    margin-top: 15px;
  }
</style>
